package com.hafu.service;

import com.hafu.dao.GysInfoDao;
import com.hafu.model.GysInfo;

import java.sql.SQLException;
import java.util.ArrayList;

/**
 * @ClassName GysInfoService
 * @Author zk
 * @Date 2024/11/1 下午7:05
 **/
public class GysInfoService {
    private GysInfoDao gysDao=new GysInfoDao();
    public Boolean addGysInfo(GysInfo gys) throws SQLException {
        return gysDao.addGysInfo(gys);
    }
    public Boolean deleteGysInfo(int id)
    {
        return gysDao.deleteGysInfo(id);
    }
    public Boolean updateGysInfo(GysInfo gys)
    {
        return gysDao.updateGysInfo(gys);
    }
    public ArrayList<GysInfo> getGysInfoName(GysInfo gys)
    {
        return gysDao.getGysInfoName(gys);
    }
}
